package edu.neu.cs6515.xml.w12;

import java.util.LinkedList;
import java.util.List;

import javax.xml.bind.annotation.XmlAttribute;
import javax.xml.bind.annotation.XmlElement;
import javax.xml.bind.annotation.XmlRootElement;
import javax.xml.bind.annotation.XmlTransient;

import lombok.AllArgsConstructor;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import edu.neu.cs6515.xml.Board;
import edu.neu.cs6515.xml.Score;
import edu.neu.cs6515.xml.Tile;

/**
 * xml representation of a turn, from the view point of a player,
 *  consist of all information necessary for make a turn
 * {@code
 * <turn> Board Score Tile ...  </turn>
 * }
 *
 */
@XmlRootElement(name="turn")
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode
public class XMLTurn {

    @Getter @Setter
    private Board board;
    
    @Getter @Setter
    private Score score;
   
    @Getter @Setter
    private List<Tile> tile = new LinkedList<Tile>(); 
}
